package com.jcy.mapper;

import com.jcy.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    //增加一本书
    int addBook(Books books);
    //删除一本书
    int deleteBook(@Param("bookID") int id);
    //更新一本书
    int updateBook(Books books);
    //查询一本书
    Books queryBookById(@Param("bookID") int id);
    //查询所有书
    List<Books> queryAllBook();
    //模糊查询
    List<Books> likeQueryBook(@Param("bookName") String bookName);
}
